package ru.kipriz.todoly.api.dao;

import ru.kipriz.todoly.api.entities.ItemObject;

import java.util.List;

/**
 * <p>Copyright: Copyright (c) 2010</p>
 *
 * @author Andrey Volkov
 *         <br/>Date: 3/24/11
 */
public interface ItemDao {
    List<ItemObject> getAll();

    ItemObject getItemById(long id);

    ItemObject createItem(ItemObject item, String... fields);

    ItemObject deleteItem(long id);

    ItemObject updateItem(ItemObject item, String... fields);
}
